
import 'package:json_annotation/json_annotation.dart';

part 'channels.g.dart';

/// 频道列表 response
@JsonSerializable()
class ChannelResponseEntity {
  final String code;
  final String title;

  ChannelResponseEntity({
    required this.code,
    required this.title,
  });

  factory ChannelResponseEntity.fromJson(Map<String, dynamic> json) =>
      _$ChannelResponseEntityFromJson(json);

  Map<String, dynamic> toJson() => _$ChannelResponseEntityToJson(this);
}
